package com.ybzl.common.config.minio;

import io.minio.MinioClient;

public class MinioConn {
    private MinioClient minioClient;

    public MinioClient getMinioClient() {
        return minioClient;
    }

    public MinioConn(String url,String accessKey,String secretKey){
        try {
            minioClient = new MinioClient(url, accessKey, secretKey);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
